ActiveReports 12 Server User Guide
Angular REST API Sample
ActiveReports 12 Server User Guide > Samples and Walkthroughs > Samples > Angular REST API Sample

The ActiveReports Server installation includes a REST API sample for Angular 4 that you can find in:

C:\ActiveReports 12 Server\SDK\Samples\Angular REST API Sample

This sample is also part of the ActiveReports Server Samples project that you can find in:

C:\ActiveReports 12 Server\SDK\Samples

The REST API sample demonstrates how to call the most frequently used REST API methods in your application linked to ActiveReports Server.

Note: Before you run the Angular REST API sample, you need to follow certain set of instructions that are given in the Prerequisites section in the README.md file. The location of this file is : C:\ActiveReports 12 Server\SDK\Samples\Angular REST API Sample

To run the sample

  1. Open the command prompt window, type the following and press enter :
     cd C:\ActiveReports 12 Server\SDK\Samples\Angular REST API Sample

  2. Execute the below command to start installing the package and link dependencies:
     yarn install
  3. After the installation is finished, run the following command to compile the package and start the server.
     yarn start    

  4. After the compilation is successful, open http://localhost:54512/ in browser.

To work with the sample

  1. When you open the browser, following login screen appears:



       

  2. Enter the login information. Following RestfulAPI sample window appears:



  3. Click a report from the list of reports to preview it in the right pane.

Note:

When a report is opened for preview, you can choose one of the following operations to perform on the report.

Save as

You can choose from the following available formats to save your report. When you click the Run button, the report is saved in the selected format.

Print using a printer on server

When you click the Run button with the selected Print option, the following window appears. Select the Server printing options and click Print

 

Print using a printer on client

When you click the Run button with the selected Print option, the following window appears. Select the Server printing options and click Print

 

For the ActiveReports Server REST API documentation, please see http://arhelp.grapecity.com/webhelp/AR12Server/WebAPI/index.html.